home *** CD-ROM | disk | FTP | other *** search
/ Loadstar 128 12 / q12.d81 / t.problem report < prev    next >
Text File  |  2022-08-28  |  3KB  |  65 lines

  1.                           PROBLEM REPORT: WINDOWPRINT
  2.  
  3.     There was a bug in the WINDOWPRINT ML files published on LOADSTAR 128
  4. #11 in the ZERO PAGE section.  The routines, which allow a program to easily
  5. send a defined rectangle of a hi-res screen to the printer, handled the "end
  6. row" parameter incorrectly.  The program that used the routine, NAMYSTICS,
  7. worked fine because I fudged the "end row" parameter to make it work.  I
  8. thought the problem was the way the C-128 handled a split screen, but the
  9. bug was in the WP128.1300 file.
  10.  
  11.     Scott Resh, the programmer, fixed the bug and I've decided to republish
  12. the three versions of this very handy routine on this issue.  The following
  13. is the relevant text from the original article that describes how to use the
  14. routine in your program.
  15.  
  16.      WINDOWPRINT is easy to use in your BASIC programs.  Just load it into
  17. place with this command near the beginning of your program.
  18.  
  19. BLOAD"WP128.1300",B0,P4864
  20.  
  21. There are three versions of WINDOWPRINT on this issue in case the version at
  22. $1300 (4864) conflicts with some other routines you may be using.  I
  23. recommend you make a variable equal to the starting address of the routine
  24. you're using.  The other versions are at $0C00 (3072) and $1A00 (6656).
  25.  
  26. WP = 4864
  27.  
  28. To set the parameters for the "window" POKE the following locations:
  29.  
  30. WP + 3  - Printer device number (default is 4)
  31.  
  32. WP + 4  - Printer secondary address (default is 0 for uppercase graphics;
  33.           make it 7 for lowercase)
  34.  
  35. WP + 5  - Line feed flag (default is 0 for NO LINE FEEDS; make it 1 if your
  36.           printer requires a line feed)
  37.  
  38. WP + 6  - Starting column number, 0-39, (default is 0)
  39.  
  40. WP + 7  - Starting row number, 0-24, (default is 0)
  41.  
  42. WP + 8  - Ending column number, 0-39 (default is 39)
  43.  
  44. WP + 9  - Ending row number, 0-24 (default is 24)  NOTE:This is the
  45. parameter that didn't work right in the previous version.
  46.  
  47. WP + 10 - High byte of screen address (default is 32)
  48.  
  49.      As you can see, the defaults will print the whole screen.  The screen
  50. address ($2000) is the normal hi-res area set when you do a GRAPHIC1 or
  51. GRAPHIC2 command.
  52.  
  53.      This routine is an upgrade of the routine used in Barbara Schulak's
  54. LABEL DESIGNER from LOADSTAR 128 #4.  It works with any printer or interface
  55. that exactly emulates the Commodore 1525 format.  IT DOES NOT WORK WITH
  56. JIFFYDOS INSTALLED UNLESS YOU SWITCH IT OFF BEFORE WINDOWPRINT IS CALLED. 
  57. If it doesn't work with your setup, but you're sure you're set up for
  58. 1525-emulation mode, you might try flipping some DIP-switches.  It's beyond
  59. our capabilities to support all of the printer formats there are, I'm
  60. afraid.
  61.  
  62. FT
  63.                              **** End of Text ****
  64.                                                                             
  65.